<template>
  <div class="bigbox">
    <div v-for="(item, index) in recommends" :key="index" class="smallbox">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    recommends: [],
  },
};
</script>
<style scoped>
.bigbox {
  display: flex;
  width: 100%;
  /* 四张图片居中 */
  text-align: center;
  font-size: 12px;
  padding: 10px 0 20px;
  border-bottom: 8px solid #eee;
}
.smallbox {
  flex: 1;
}
.smallbox img {
  width: 65px;
  margin-bottom: 5px;
}
</style>